package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.Log.LogDTO;
import com.qk.management.service.OperateLogService;
import com.qk.vo.Log.LogVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kaoM1Jy
 * @date 2025/10/17 18:08
 * @description:
 */
@RestController
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;

    @GetMapping("/logs")
    public Result getOperateLogs( LogDTO dto){
       PageResult<LogVO> operateLogs = operateLogService.getOperateLogs(dto);
        return Result.success(operateLogs);
    }
}
